const express = require('express');
const bodyParser = require('body-parser');

const app = express();
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));

const userRouter = require('./router/user');
app.use('/user', userRouter);

app.listen(3000, () => {
  console.log('express service running at http://localhost:3000');
});
